package com.itheima.d4_jdk8_time;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public class Test3_LocalDateTime {
    public static void main(String[] args) {
        LocalDateTime ldt = LocalDateTime.now();
        System.out.println(ldt);

        LocalDate ld = ldt.toLocalDate();
        LocalTime lt = ldt.toLocalTime();

        System.out.println(ld);
        System.out.println(lt);


        LocalDateTime ldt2 = LocalDateTime.of(ld,lt);
        System.out.println(ldt2);
    }
}
